<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
      li:nth-child(1) {color: red;}
      li:first-of-type {color: blue;}


  </style>
</head>
<ul>
    <p>段落</p>
    <li>1</li>
    <li>2</li>
</ul>


</body>
</html>